/**
 * 
 */
package tp8.tsh.cli;

import java.io.PrintStream;

/**
 * @author tpana
 *
 */
public class TSHOutput {

	private PrintStream out;
	
	/**
	 * @return the out
	 */
	public synchronized PrintStream getOut() {
		return out;
	}

	/**
	 * @param out the out to set
	 */
	public synchronized void setOut(PrintStream out) {
		this.out = out;
	}

	public void println(String text) {
		out.println(text);
	}
	
	public void print(String text) {
		out.print(text);
	}
	
	public void printWelcomeMessage() {
		out.println("**********************");
		out.println("*     TSH v0.0.1     *");
		out.println("**********************");
	}
	
	public void printDefaultMessage(String path) {
		out.print(path + "# ");
	}
	
}
